package cn.zhang.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Person {

	private Long id;

    private String usercode;

    private String password;

    private String username;

    private String flag;
    
    private Double money;
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date birthday; 

    

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode == null ? null : usercode.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }

	@Override
	public String toString() {
		return "Person [id=" + id + ", usercode=" + usercode + ", password=" + password + ", username=" + username
				+ ", flag=" + flag + ", money=" + money + ", birthday=" + birthday + "]";
	}
    
    
}
